function quartzAdd() {
	quartzSave();
}
function quartzSave() {
	var s = new Array();
	var cron=$("#cron").val();
	if(!cron) {
		jalert("表达式不能为空！");
		 return;
	}
	$.ajax({
        cache: true,
        type: "POST",
        dataType : "json",  
        url:ctp+"/quartzController/quartzSave.shtml", 
        data:$('#form1').serialize(),
        error: function(request) {
        	jalert("连接错误！"); 
        },
        success: function(data) {
        	if(data.success=="true") {
        		jalert9(data.msg);
        		setTimeout(function(){
					parent.searchData();
					back();
				}, WARN_TIME_OUT);
	         }else {
	        	 jalert(data.msg);
	         }
        }
    });
}		

//返回
function back() {
	window.parent.closeDialogWin();

}
